package com.funtl.hello.spring.cloud.alibaba.nacos.consumer.feign.service;

import com.funtl.hello.spring.cloud.alibaba.nacos.consumer.feign.service.fallback.NacosProviderFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @User: Yu
 * @Date: 2019/2/3  21:45
 * @Description:
 */
@FeignClient(value = "nacos-provider",fallback = NacosProviderFallback.class)
public interface NacosProviderService {

   @GetMapping(value = "/echo/{message}")
    public String echo(@PathVariable(value = "message") String message);
}
